public class Mouse {
    private String name;
    public Mouse(String name){
        this.name=name;
    }
    public void printInfo(){
        System.out.println("大家好，我叫"+this.name);
    }
    public void squeak(){
        System.out.println(this.name+"吱吱吱");
    }
    public void stealFood(String food){
        System.out.println(this.name+"偷吃鱼啦");
    }
    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return this.name;
    }
}
